class List{
    fun start(){
        val totalname=Totalname()
        while(true){
            val one=people.input()
            if(totalname.screen(one)){
                val names:MutableList<People> = mutableListOf(one)
                totalname.namess.add(names)
            }else{
                for(names in totalname.namess)
                {
                    if(names[0].pinyin[0]==one.pinyin[0])
                    {
                        totalname.namess[totalname.namess.indexOf(names)].add(one)
                        break
                    }
                }
            }
            totalname.paixu()
            totalname.printall()
        }
    }
}